# can handle all of these like narcs because a028 is built unconditionally

HIDDEN_ABILITY_TABLE_TARGET := $(BUILD)/a028/9_07
HIDDEN_ABILITY_TABLE_DEPENDENCIES := data/HiddenAbilityTable.c
HIDDEN_ABILITY_TABLE_OBJS := $(patsubst data/%.c,build/%.o,$(HIDDEN_ABILITY_TABLE_DEPENDENCIES))
HIDDEN_ABILITY_TABLE_BIN := $(patsubst data/%.c,build/%.bin,$(HIDDEN_ABILITY_TABLE_DEPENDENCIES))

$(HIDDEN_ABILITY_TABLE_BIN): $(HIDDEN_ABILITY_TABLE_DEPENDENCIES)
	$(CC) $(CFLAGS) -c $< -o $(HIDDEN_ABILITY_TABLE_OBJS)
	$(OBJCOPY) -O binary $(HIDDEN_ABILITY_TABLE_OBJS) $@

NARC_FILES += $(HIDDEN_ABILITY_TABLE_BIN)

BASE_EXPERIENCE_TABLE_TARGET := $(BUILD)/a028/9_08
BASE_EXPERIENCE_TABLE_DEPENDENCIES := data/BaseExperienceTable.c
BASE_EXPERIENCE_TABLE_OBJS := $(patsubst data/%.c,build/%.o,$(BASE_EXPERIENCE_TABLE_DEPENDENCIES))
BASE_EXPERIENCE_TABLE_BIN := $(patsubst data/%.c,build/%.bin,$(BASE_EXPERIENCE_TABLE_DEPENDENCIES))

$(BASE_EXPERIENCE_TABLE_BIN): $(BASE_EXPERIENCE_TABLE_DEPENDENCIES)
	$(CC) $(CFLAGS) -c $< -o $(BASE_EXPERIENCE_TABLE_OBJS)
	$(OBJCOPY) -O binary $(BASE_EXPERIENCE_TABLE_OBJS) $@

NARC_FILES += $(BASE_EXPERIENCE_TABLE_BIN)

SPECIES_TO_OW_GFX_TARGET := $(BUILD)/a028/9_10
SPECIES_TO_OW_GFX_DEPENDENCIES := data/SpeciesToOWGfx.c
SPECIES_TO_OW_GFX_OBJS := $(patsubst data/%.c,build/%.o,$(SPECIES_TO_OW_GFX_DEPENDENCIES))
SPECIES_TO_OW_GFX_BIN := $(patsubst data/%.c,build/%.bin,$(SPECIES_TO_OW_GFX_DEPENDENCIES))

$(SPECIES_TO_OW_GFX_BIN): $(SPECIES_TO_OW_GFX_DEPENDENCIES)
	$(CC) $(CFLAGS) -c $< -o $(SPECIES_TO_OW_GFX_OBJS)
	$(OBJCOPY) -O binary $(SPECIES_TO_OW_GFX_OBJS) $@

NARC_FILES += $(SPECIES_TO_OW_GFX_BIN)


POKEFORMDATATBL_TARGET := $(BUILD)/a028/9_11
POKEFORMDATATBL_DEPENDENCIES := data/PokeFormDataTbl.c
POKEFORMDATATBL_OBJS := $(patsubst data/%.c,build/%.o,$(POKEFORMDATATBL_DEPENDENCIES))
POKEFORMDATATBL_BIN := $(patsubst data/%.c,build/%.bin,$(POKEFORMDATATBL_DEPENDENCIES))

$(POKEFORMDATATBL_BIN): $(POKEFORMDATATBL_DEPENDENCIES)
	$(CC) $(CFLAGS) -c $< -o $(POKEFORMDATATBL_OBJS)
	$(OBJCOPY) -O binary $(POKEFORMDATATBL_OBJS) $@

NARC_FILES += $(POKEFORMDATATBL_BIN)
